import { BrowserRouter, Routes, Route } from 'react-router-dom'
import Login from './views/login/index'
import MainLayout from './views/layout/index'
import Home from './views/home/index'
import Public from './views/public/index'
import Score from './views/score/index'

function App(){
    return (
        <BrowserRouter>
             <Routes>
                <Route path='/login' element={<Login />} />
                <Route path='/layout' element={<MainLayout />}>
                 <Route path='home' element={<Home />}></Route>
                 <Route path='public' element={<Public />}></Route>
                 <Route path='score' element={<Score />}></Route>
                </Route>
             </Routes>
        </BrowserRouter>
    )
}
export default App;